import request from "@/utils/request";

export default {
  getList(page,size,name) {
    return request({
      url: `/quarters/list?num=${page}&size=${size}&name=${name}`,
      method: 'post',
    })
  },
  add(quarter){
    return request({
      url: `/quarters/add`,
      method: 'post',
      data:quarter
    })
  },
  getById(id){
    return request({
      url:`/quarters/getById/${id}`,
      method: 'get',
    })
  },
  edit(quarter){
    return request({
      url:`/quarters/edit`,
      method: 'post',
      data:quarter
    })
  }


}
